import request from '@/utils/request'

// 查询充值记录列表
export function listRecord(query) {
  return request({
    url: '/payrecord/record/CompyRecord',
    method: 'get',
    params: query
  })
}

// 查询充值记录详细
export function getRecord(F1001) {
  return request({
    url: '/payrecord/record/' + F1001,
    method: 'get'
  })
}

// 新增充值记录
export function addRecord(data) {
  return request({
    url: '/payrecord/record',
    method: 'post',
    data: data
  })
}

// 修改充值记录
export function updateRecord(data) {
  return request({
    url: '/payrecord/record',
    method: 'put',
    data: data
  })
}

// 删除充值记录
export function delRecord(F1001) {
  return request({
    url: '/payrecord/record/' + F1001,
    method: 'delete'
  })
}

// 查询公司盈利
export function getProfit(query) {
  return request({
    url: '/payrecord/record/getDetail',
    method: 'get',
    params: query
  })
}
